<template>
    <div class="box">
    <div class="title" v-for="(item,index) in list" :key="index" >
        <div style="padding: 10px;">
            {{index+1}}. {{item.sectionName}}
            <a-button type="primary" icon="cloud-download"  style="float: right;background-color: #2DB7F5;border-radius: 2px">
                下载
            </a-button>
        </div>

        <div class="text" v-for="(item1,index1) in (item.subSections)" :key="index1">
            <div >
               {{index+1}}-{{index1+1}} {{item1.sectionName}}
            </div>
        </div>
    </div>
    </div>
</template>
<script>
    export default {
props:{
    list:{
        type:Array,
        default:()=>{
          [{sectionName: "第1篇-面试技巧从入门到实战"},{fileName: "面试的重要性和面试准备.mp4"}]
        }
    }
}
    }
</script>
<style lang="less" scoped>
    .box{
        padding:0 30px;
        font-size: 14px;
        color: #595959;
        line-height: 30px;
    }
    .title{
        font-size: 22px;
        margin-left: 4px;
        /*height: 30px;*/
        line-height: 30px;
    }
    .text{
        /*padding: 30px;*/
        font-size: 14px;
        color: #595959;
        background-color: #F2F2F2;
        height: 50px;
        line-height: 50px;
        padding-left: 20px;
        margin-bottom: 10px;
    }
    .text:hover{
        color: #00cf8c;
    }
</style>